/* 基础样式 */
.subscribe .subscribeContainer {
    padding-top: 0px !important;
    padding: 24px;
    max-height: calc(100vh - 171px);
    overflow-y: auto;
    background-color: #FCFBF8;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23704214' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.subscribe .subscribeTitle {
    font-size: 28px;
    font-weight: bold;
    color: #704214;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

/* 页面标题区 */
.subscribe .pageHeader {
    margin-bottom: 24px;
}

.subscribe .pageTitle {
    font-size: 24px;
    font-weight: bold;
    color: #704214;
    margin-bottom: 8px;
}

.subscribe .currentDate {
    color: #666;
    font-size: 14px;
}

.subscribe .headerActions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

/* 头部操作区对齐修复 */
.subscribe .headerActionsRight {
    display: flex;
    align-items: center;
    gap: 16px;
}

.subscribe .searchBar {
    position: relative;
    width: 300px;
    height: 36px; /* 与按钮高度匹配 */
}

.subscribe .searchInput {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    height: 100%; /* 继承父容器高度 */
    line-height: 1.5; /* 文字垂直居中 */
}

.subscribe .searchIcon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.subscribe .addBtn {
    background-color: #556B2F;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    text-align: center;
    height: 36px; /* 固定高度，与搜索框对齐 */
    box-sizing: border-box;
}

.subscribe .addBtn:hover {
    background-color: #4a5c27;
    transition: background-color 0.2s ease;
}

/* 日期导航 */
.subscribe .dateNavContainer {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: #556B2F #f5f5f5;
}

.subscribe .dateNavItem {
    min-width: 80px;
    background-color: white;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.subscribe .dateNavItem:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.subscribe .dateNavItem.active {
    background-color: #556B2F;
    color: white;
}

.subscribe .dateNavItem.active .dateNavDay,
.subscribe .dateNavItem.active .dateNavDate {
    color: white !important;
}

.subscribe .dateNavDay {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.2;
}

.subscribe .dateNavDate {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.subscribe .calendarIconItem {
    min-width: 80px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.subscribe .calendarIcon {
    color: #704214;
    font-size: 18px;
}

/* 预约列表 - 优化触控体验 */
.subscribe .appointmentTableContainer {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 24px;
    overflow-x: auto;
}

.subscribe .appointmentTable {
    width: 100%;
    border-collapse: collapse;
    min-width: 768px;
}

.subscribe .tableHeader {
    background-color: #FCFBF8;
    text-align: left;
}

.subscribe .tableHeader th {
    padding: 16px;
    font-size: 18px; /* 增大表格标题字体 */
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.subscribe .tableBody td {
    padding: 16px; /* 调整内边距 */
    border-top: 1px solid #f5f5f5;
    font-size: 18px; /* 增大表格内容字体 */
    vertical-align: middle;
    white-space: nowrap;
}

.subscribe .tableRow:hover {
    background-color: rgba(252, 251, 248, 0.5);
}

/* 表格内容样式 - 优化触控体验 */
.subscribe .timeInfo {
    font-weight: 500;
    margin-bottom: 4px;
}

.subscribe .appointmentId {
    font-size: 14px;
    color: #999;
}

.subscribe .clientInfo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscribe .clientAvatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.subscribe .clientName {
    font-weight: 500;
    margin-bottom: 2px;
}

.subscribe .clientId {
    font-size: 14px;
    color: #999;
}

.subscribe .serviceName {
    margin-bottom: 4px;
}

.subscribe .servicePrice {
    font-size: 14px;
    color: #999;
}

/* 分页 */
.subscribe .pagination {
    padding: 16px;
    background-color: #FCFBF8;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.subscribe .paginationInfo {
    font-size: 14px;
    color: #666;
}

.subscribe .paginationControls {
    display: flex;
    gap: 8px;
}

.subscribe .pageBtn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    min-width: 36px;
    text-align: center;
}

.subscribe .pageBtn:hover:not(.active):not(:disabled) {
    border-color: #704214;
    color: #704214;
}

.subscribe .pageBtn.active {
    background-color: #556B2F;
    color: white;
    border-color: #556B2F;
}

.subscribe .pageBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 模态框通用样式 */
.subscribe .modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.subscribe .modalContent {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
}

.subscribe .modalHeader {
    padding: 20px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscribe .modalTitle {
    font-size: 20px;
    font-weight: bold;
    color: #704214;
}

.subscribe .closeBtn {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
}

.subscribe .closeBtn:hover {
    color: #666;
}

.subscribe .modalBody {
    padding: 20px;
}

.subscribe .modalFooter {
    padding: 16px 20px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 按钮样式优化 - 桌面端触控大小 */
.subscribe .modalFooter button {
    min-width: 120px;
    height: 50px;
    font-size: 18px;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscribe .modalFooter .cancelModalBtn {
    background-color: #f0f0f0;
    color: #333;
    border: none;
}

.subscribe .modalFooter .cancelModalBtn:hover {
    background-color: #e0e0e0;
}

.subscribe .modalFooter .addBtn {
    background-color: #556B2F;
    color: white;
    border: none;
}

.subscribe .modalFooter .addBtn:hover {
    background-color: #4a5c27;
}

/* 预约表单样式 */
.subscribe .formGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.subscribe .formGroup {
    margin-bottom: 20px;
}

.subscribe .formLabel {
    display: block;
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.subscribe .formInput,
.subscribe .formSelect {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    height: 50px; /* 统一高度 */
    line-height: 1.5;
}

.subscribe .formTextarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    min-height: 100px;
    resize: vertical;
}

/* 详情弹窗样式 */
.subscribe .bg-light {
    background-color: #f9f9f9;
}

.subscribe .text-primary {
    color: #556B2F;
}

.subscribe .font-medium {
    font-weight: 500;
}

.subscribe .text-sm {
    font-size: 14px;
}

.subscribe .text-xs {
    font-size: 12px;
}

.subscribe .text-gray-500 {
    color: #999;
}

.subscribe .text-gray-600 {
    color: #666;
}

.subscribe .text-gray-700 {
    color: #555;
}

.subscribe .text-gray-800 {
    color: #333;
}

.subscribe .text-blue-600 {
    color: #1976d2;
}

.subscribe .text-green-600 {
    color: #2e7d32;
}

.subscribe .text-red-600 {
    color: #d32f2f;
}

.subscribe .text-yellow-600 {
    color: #f57c00;
}

.subscribe .flex {
    display: flex;
}

.subscribe .items-center {
    align-items: center;
}

.subscribe .items-start {
    align-items: flex-start;
}

.subscribe .justify-between {
    justify-content: space-between;
}

.subscribe .mb-4 {
    margin-bottom: 16px;
}

.subscribe .p-6 {
    padding: 24px;
}

.subscribe .rounded-lg {
    border-radius: 8px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .subscribe .actionBtns {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (max-width: 768px) {
    .subscribe .formGrid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .subscribe .headerActions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .subscribe .headerActionsRight {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .subscribe .searchBar {
        width: 100%;
    }

    .subscribe .dateNavItem {
        min-width: 60px;
    }
}
    